
const router = require('express').Router();

// 导入用相关的中间件
let {regCheck,loginCheck,userCheck} = require('../middleware/user')
// 导入用户相关的控制器
let {regCon,loginCon,getCon} = require('../controller/user')



router.post('/register',regCheck,regCon)

router.post('/login',loginCheck,loginCon)


router.get('/:id',userCheck,getCon)


module.exports = router;

